package com.atguigu.gmall.search.vo;

import lombok.Data;

import java.util.List;

@Data
public class QueryParamVo {
    //如果是基本类型的属性  使用包装类，如果前端没有传入该参数，默认值为null
    //search?keyword=手机&brandId=1,2&cid=225&priceFrom=2000&priceTo=6000&sort=2
    // &store=true&props=4:8G-12G&props=5:128G-256G
    private String keyword;
    private List<Long> brandId;
    private Long cid;
    private Double priceFrom;
    private Double priceTo;
    private Integer sort = 0;//0默认排序     1价格升序  2价格降序  3上架时间降序  4销量排序
    private Boolean store;
    //  4:8G-12G    5:128G-256G
    private List<String> props;//检索属性选择的内容

    private Integer pageNum = 1;
    private Integer pageSize = 20;

}
